<#ibizinclude>
../@MACRO/MODEL/MODEL_HEADER.ts.ftl
</#ibizinclude>

  /**
    * 获取数据项集合
    *
    * @returns {any[]}
    * @memberof ${srfclassname('${ctrl.codeName}')}Model
    */
  public getDataItems(): any[] {
    return [
<#--  主实体所有属性  -->
<#if ctrl.getAllPSPanelFields()??>
    <#list ctrl.getAllPSPanelFields() as datafield>
      {
        name: '${datafield.getName()?lower_case}',
        <#if datafield.getPSCodeList()??>
        <#assign codelist = datafield.getPSCodeList() />
        codelist:{tag:'${codelist.codeName}',codelistType:'${codelist.getCodeListType()}'},
        </#if>
        prop: '${datafield.getViewFieldName()?lower_case}'
      }<#if datafield_has_next>,</#if>
    </#list>
</#if>
    ]
  }
<#ibizinclude>
../@MACRO/MODEL/MODEL_BOTTOM.ts.ftl
</#ibizinclude>